// 频道框架as-channel-area
.as-channel-area {
    display: flex;
    height: 100%;
    overflow: hidden;
    .as-channel-class,
    .as-channel-list,
    .as-channel-show {
        padding: 0 0.75rem;
        height: 100%;
        overflow: auto;
    }
    .as-channel-class {
        width: 160px;
    }
    .as-channel-list {
        width: 390px;
    }
    .as-channel-show {
        flex-grow: 1;
    }
    .as-channel-float {
        display: none;
        position: absolute;
        bottom: 1rem;
        left: 1rem;
        .as-channel-float-class,
        .as-channel-float-list {
            user-select: none;
            cursor: pointer;
            opacity: 0.6;
            box-shadow: -1px -1px 2px rgba(0, 0, 0, 0.2);
            background-color: var(--ch6);
            color: var(--ch0);
            border-radius: 6px;
            padding: 6px;
            margin: 6px 0;
        }
        .as-channel-float-class {
            display: block;
        }
        .as-channel-float-list {
            display: none;
        }
    }
    .as-channel-nohidden {
        display: block !important;
    }
    /* 响应式布局 */
    @media (max-width: 768px) {
        .as-channel-list {
            display: none;
        }
        .as-channel-float {
            .as-channel-float-list {
                display: block;
            }
        }
    }

    @media (max-width: 1024px) {
        .as-channel-class {
            display: none;
        }
        .as-channel-float {
            display: inline-block;
        }
    }
    /* 标题样式 */
    h1 {
        font-size: 1.25rem;
        font-weight: weight;
        margin-bottom: 0.75rem;
        padding: 0.75rem 0;
        border-bottom: 2px solid var(--ch4);
        position: relative;
    }

    h1::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 40%;
        height: 2px;
        background-color: var(--cm8);
    }
}
// 频道分类列表as-channel-class
.as-channel-class-area {
    > div {
        cursor: pointer;
        padding: 0.5rem 1rem;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
    > div:hover {
        background: linear-gradient(90deg, var(--ch2), transparent);
        transform: translateX(8px);
    }
    .cur {
        background: linear-gradient(90deg, var(--cm2), transparent);
    }
}
// 频道内容列表as-channel-list
.as-channel-list-area {
    position: relative;
    > div {
        display: flex;
        padding: 6px 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        .li {
            cursor: pointer;
            flex-grow: 1;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }
        .btns {
            min-width: 120px;
            width: 120px;
            display: inline-flex;
            justify-content: space-around;
            align-items: center;
            div {
                border: 1px solid var(--ch4);
                background-color: var(--ch2);
                padding: 2px 8px;
                cursor: pointer;
                border-radius: 8px;
            }
        }
    }
    > div:hover {
        background: linear-gradient(-145deg, var(--ch2), transparent);
    }
    > div.cur {
        background: linear-gradient(145deg, var(--cm2), transparent);
    }
}
// 按钮组样式
.as-channel-btns {
    display: flex;
    padding: 5px 0 18px 0;
    margin: 0;
    div {
        border-radius: 12px;
        padding: 5px 12px;
        margin-right: 12px;
        cursor: pointer;
        background-color: var(--ch2);
        color: var(--ch8);
    }
    .cur {
        background-color: var(--cm8);
        color: var(--cm0);
    }
}
